package com.hmall.common.cliet;


import com.hmall.common.config.MyFeignRequestInterceptor;
import com.hmall.common.dto.PageDTO;
import com.hmall.common.pojo.Address;
import com.hmall.common.pojo.Item;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "userservice",configuration = MyFeignRequestInterceptor.class)
public interface UserFeignClient {
    //根据id查询地址接口
    @GetMapping("/address/{id}")
    public Address findAddressById(@PathVariable("id") Long id);
}
